package com.tyk.bookstore.front.comment.repository;

import com.tyk.bookstore.front.comment.model.entity.ReplyDo;
import com.tyk.bookstore.front.common.dal.mapper.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tyk
 * @description 回复管理
 */
@Mapper
public interface ReplyRepository extends IMapper<ReplyDo> {
    List<ReplyDo> selectByTopId(@Param("topId") Long topId);

    Long existById(@Param("id") Long id, @Param("memberId") Long memberId);

    void deleteBatchByTopId(@Param("topId") Long topId);
}
